package cmcciot.onenet.nbapi.sdk.entity;

import cmcciot.onenet.nbapi.sdk.config.Config;

/**
 * @author LHL
 * @date: 2018/8/3
 */
public class QueryDeviceInfo extends CommonEntity {

    public QueryDeviceInfo(String imei) {
        this.imei = imei;
    }

    @Override
    public String toUrl() {
        StringBuilder url = new StringBuilder(Config.getDomainName());
        url.append("devices/getbyimei?imei=").append(this.imei);
        return url.toString();
    }
}
